<h1 id="titlename">欢迎回来，<?php echo $username; ?></h1>
<div class="clear">
    <div class="row">
        <div class="col-sm-8 col-sm-offset-1">
            <div class="col-sm-10 col-sm-offset-2">
                <div <?php $err = validation_errors(); echo !(empty($error) && empty($err)) ? 'class="alert alert-danger text-center"' : '' ?>><?php echo validation_errors(); ?><?php echo $error ?></div>
            </div>
<?php echo form_open('poster_admin/center', array('class'=>'form-horizontal','role'=>'form')); ?>
            <div class="form-group">
                <label for="oldpass" class="col-sm-3 control-label">原密码</label>
                <div class="col-sm-9">
                    <input type="password" name="oldpass" class="form-control" id="oldpass" size="20" placeholder="原密码"/>
                </div>
            </div>
            <div class="form-group">
                <label for="newpass" class="col-sm-3 control-label">新密码</label>
                <div class="col-sm-9">
                    <input type="password" name="newpass" class="form-control" id="newpass" size="20" placeholder="新密码"/>
                </div>
            </div>
            <div class="form-group">
                <label for="passconf" class="col-sm-3 control-label">确认新密码</label>
                <div class="col-sm-9">
                    <input type="password" name="passconf" class="form-control" id="passconf" size="20" placeholder="确认新密码"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <input type="submit"  class="btn btn-primary btn-block btn-lg" value="提交" />
                </div>
            </div>
</form>
        </div>
    </div>
</div>